


clear

*cd "/Users/benlyons/Dropbox/Affirmation/JEPS final/"
**set path**

*******************************
***Farhart et al***************

use "Farhart.dta"

**table output
reg con_index7 i.Republican aff_lib_farhart repub_selfaff, robust
est store farhart_con

reg lib_index6 i.Republican aff_lib_farhart repub_selfaff,robust
est store farhart_lib

*******************************
***Kotcher*********************

use "Kotcher.dta"

**table output
reg dv_scale condition1_kotch ideo_bins condition1_ideo_bins, robust
est store kotcher

**********************************
***Levendusky*********************

use "Levendusky.dta"

**table output
reg affect_merged affirm_levdistance party_st affirm_party_st, vce(robust)
est store levaffect_party

reg discuss_polar affirm_levdistance party_st affirm_party_st, vce(robust)
est store levdiscuss_party

reg outparty_danger affirm_levdistance party_st affirm_party_st, vce(robust)
est store levdanger_party

reg social_distance affirm_levdistance party_st affirm_party_st, vce(robust)
est store levdistance_party

**********************************
***Lyons**************************

use "LyonsStudy1.dta"

reg Zparty_aligned_belief condition1_lyons1 Strength2lvl self_party1, robust 
est store lyons1

use "LyonsStudy2.dta"

reg Zparty_aligned_ben_minus_risk affirm_lyons2 party_st self_party2, robust
est store lyons2

**********************************
***Nyhan and Reifler**************

*********
*STUDY 1*
*********

use "cces-replication.dta", clear

svyset [pweight=weight]

reg numinsurg selfaffirmation_iraq iraqwithdraw self_iraq, robust
est store nyhaniraq

*********
*STUDY 2*
*********

use "mturk-replication.dta", clear

reg jobs5 aff_jobs econimport disapprove aff_econ aff_dis, robust
est store nyhanjobs

*********
*STUDY 3*
*********

use "qualtrics-replication.dta", clear

reg tempchange affirmation_gw strong  aff_strong if treatment ==1
est store nyhan_temp1
reg tempchange affirmation_gw strong  aff_strong if treatment ==2
est store nyhan_temp2

reg gwarm affirmation_gw strong  aff_strong if treatment ==1
est store nyhan_gw1
reg gwarm affirmation_gw strong  aff_strong if treatment ==2
est store nyhan_gw2

************************************
***Rami and Hall*********************

use "RaimiHall.dta"

reg BS_immigration condition1_raimi_bs party_st condition_party_st, robust
est store raimi_super

reg sqIM_Bel condition1_raimi_bs party_st condition_party_st, robust
est store raimi_extreme

*******************************
***Skytte*********************

use "Skytte.dta"

reg FT_diff_avg T1_Affir_Af_1_Unaf_0_dist2 party_st T1_party_st, rob
est store skytte_ft

reg Although_Im_A T1_Affir_Af_1_Unaf_0_dist2 party_st T1_party_st, rob
est store skytte_dist1

reg Less_inf T1_Affir_Af_1_Unaf_0_dist2 party_st T1_party_st, rob
est store skytte_dist2

*******************************
***Zhao***********************

use "Zhao.dta" 

**cc real message
reg dvs_combined  affirm_z affirmpol repub rep_self rep_selfpol if message1 ==1
est store zhao1
**cc hoax message 
reg dvs_combined  affirm_z affirmpol repub rep_self rep_selfpol if message1 ==2
est store zhao2

**************
***Figure 1***
**************
		

set scheme plottig
  coefplot farhart_con farhart_lib, bylabel(Conspiracy beliefs (Farhart et al.)) ///
    || kotcher, bylabel(Climate attitudes (Kotcher)) ///
       || raimi_extreme raimi_super, bylabel(Belief superiority (Raimi and Hall)) ///
		   || skytte_ft skytte_dist1 skytte_dist2, bylabel(Affective polarization (Skytte)) ///
		     || zhao1 zhao2, bylabel(News evaluations (Zhao)) ///
        ||, keep(repub_selfaff condition_party_st condition1_ideo_bins T1_party_st  rep_self) xline(0) plotregion(fcolor(none) lcolor(black) ifcolor(none) ilcolor(none))
					
		
***********************
***Full cross tables***
***********************

**Nyhan and Reifler***

**Study 1

use "CCES_full.dta"

reg numinsurg selfaffirmation iraqwithdraw self_iraq surgegraph graph_aff graph_aff_iraqw, robust

**Study 2

use "mturk_full.dta"

reg jobs5 aff graph econimport disapprove aff_econ aff_dis aff_graph aff_graph_econ aff_graph_dis, robust

**Study 3

use "qualtrics_full.dta"

**dummies
reg tempchange affirmation_gw strong  aff_strong graph text aff_text aff_graph , robust
reg gwarm affirmation_gw strong  aff_strong graph text aff_text aff_graph, robust
**three way 
reg tempchange affirmation_gw strong  aff_strong graph text aff_text aff_graph aff_text_strong aff_graph_strong, robust
reg gwarm affirmation_gw strong  aff_strong graph text aff_text aff_graph aff_text_strong aff_graph_strong, robust

**Zhao***

use "Zhao_full.dta"
 
reg dvs_combined  affirm_z message1 affirmpol   message_affirm, robust
